//*************************************************************************************
// EGTB Generator Retrograde Algorithm
//*************************************************************************************

#include "Stdafx.h"
#include "EndGameDb.h"

namespace EndGameDB
{
	// sets unknown values to DRAW value
	void SetUnknownToDraw(uint32 *currentdb, uint8* dtm, int64 dbsize)
	{
		int64 i;

		for(i=0; i<dbsize; i++)
		{
			if(GetDatabaseValue(currentdb, i) == UNKNOWN)
			{
				SetDatabaseValue(currentdb, i, DRAW);
				SetDTMValue(dtm, i, 0);
			}
		}
	}
}
